/*****************************************************************************

  StopWatch
  ---------

  Interface, based on the GetTickCount API, to log time elapses.

  by yoda

  WWW:      y0da.cjb.net
  E-mail:   LordPE@gmx.net

  You are allowed to use this class in your own projects if you keep this
  trademark.

*****************************************************************************/

#pragma once

#include <windows.h>

//
// CStopWatch class
//
class CStopWatch
{
public:
	CStopWatch(void);
	~CStopWatch(void);

	void    Start();
	void    Stop();

	DWORD   GetMSeconds();
	DWORD   GetSeconds();
	DWORD   GetMinutes();

	DWORD   GetTimeMSeconds();
	DWORD   GetTimeSeconds();
	DWORD   GetTimeMinutes();

private:
	DWORD   dwStartTime, dwEndTime;
};
